<?php
require_once dirname(__FILE__).'/include.php';
Master::loadCoreClass("AdminControl");
$Admin = new AdminControl();
if (Get::getByKey('action')=='logout')
{  
  $Admin->logout();
}  
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?=Config::$siteName ?></title>		
<?php
require_once dirname(__FILE__).'/_heard.php';
?>
</head>
<body>
<script type="text/javascript">
	$(function() {
		$('#main-nav a#bigclass').click(
			function(){
				$('#main-nav a.current#bigclass').removeClass("current");
				$(this).addClass('current');						
			}
		);
		$('#main-nav a#smallclass').click(
			function(){
				$('#main-nav a.current#smallclass').removeClass("current");
				$(this).addClass('current');				
			}
		);
	});
</script>
<div id="body-wrapper"> 
		<div id="sidebar"><div id="sidebar-wrapper"> 
			<h1 id="sidebar-title"></h1>		  
			
			<a href="#"><img id="logo" src="Images/logo.png" alt="Simpla Admin logo" /></a>		  
			
			<div id="profile-links">
				你好:<a href="adminmod.php?id=<?=Session::getByKey('admingroup')?>" target="MainCenter"><?=Session::getByKey('adminname')?></a>，欢迎进入管理系统<br />
				<br />
				<a href="home.php" title="View the Site" target="MainCenter">后台首页</a> | <a href="?action=logout">【退出】</a>
			</div>        			
			<ul id="main-nav">
				<li>
					<a href="#" class="nav-top-item" id="bigclass">
						系统管理
					</a>
					<ul>
						<li><a id="smallclass" href="adminlist.php" target="MainCenter">管理员管理</a></li>
						<li><a id="smallclass" href="adminsgroupList.php" target="MainCenter">权限管理</a></li>
						<li><a id="smallclass" href="adminsnodeList.php" target="MainCenter">权限节点管理</a></li>
            <li><a id="smallclass" href="adminhelper.php" target="MainCenter">开发助手</a></li>
					</ul>
				</li>      				
			</ul> 
		</div></div> 
		<div id="main-content"> 
			<div class="clear"></div> 
			<iframe src="home.php" width="100%" height="800" id="MainCenter" name="MainCenter" frameborder="no" border="0" marginheight="0" allowtransparency="yes">
      </iframe>
			<div id="footer">
						&#169; Copyright 2009 anyphpmvc | Powered by <a href="http://www.ayhome.org">Anyhome</a> | <a href="#">Top</a>
			</div>			
		</div> 		
	</div>	
</body>  
</html>


